@include('home.Usercenter.header')


    <!-- {{Session::get('id')}} -->
    <body cute-title="" ng-class="{hidesidebar: layoutState &amp;&amp; layoutState.hideSidebar, smallbody: layoutState.smallBody, whitebody: layoutState.whiteBody}"
    lim:visit   orcapacity="1" style="position: relative;">
		 <div ng-view="" role="main" class="ng-scope">
            <div class="profile profile-container container" profile-container=""
            page-name="profile" page-title="个人中心" page-title-visible="false">
                <div class="clearfix">
                    <div class="location" ng-style="{visibility: geohash ? '' : 'hidden'}"
                    role="navigation" location="">
                        <span>
                            当前位置 : {{session('dizhi')}}
                        </span>
                        
                        <span ng-transclude="">


                            <span class="ng-binding ng-scope">
                                个人中心
                            </span>
                        </span>
                    </div>
                    <div search-input="">
                    </div>
                </div>
				@include('home.UserCenter.leftList')

                
                <div class="profile-panel" role="main">
                    <!-- ngIf: pageTitleVisible -->
                    <div class="profile-panelcontent" ng-transclude="">
                        @foreach($userss as $k)
                        <div style="width:500px" class="profile-info ng-scope">
                            <div class="profile-infoitem" style="display: block;">
                                <div class="profile-avatarwrap">
                                    <img ng-show="" ng-src=""

                                    alt="{{$k->username}}的头像" class="profile-avatar" src="/home/UserCenters/img/default/{{$k -> headpic}}"
                                    />
                                    <a href="/UserCenter/info" class="profile-edit">
                                        编辑资料
                                    </a>
                                </div>
                                <div class="profile-perosondata">
                                    <h3 class="profile-name ng-binding">

                                        欢迎您,
                                        <strong class="ng-binding">
                                            {{$k->username}}
                                        </strong>
                                    </h3>
                                    <p class="profile-tips ng-binding" ng-bind="timeSection.tipText">
                                        在这里,看到更加全面的自己

                                    </p>
                                    <p class="profile-security">
                                        账户安全：
                                        <span ng-class="{'low': level === 0, 'mid': level === 1, 'high': level ===2 || level ===3}"
                                        ng-bind="levelText" class="ng-binding high">
                                            高
                                        </span>
                                        <a href="/UserCenter/info">
                                            查看详情
                                        </a>
                                    </p>
                                    
                                    @if(!empty($k->email))
                                        <p class="profile-othermessage">
                                        <a href="/Usercenter/security" class="icon mobile icon-profile-phone ng-scope" ng-if="user.is_mobile_valid"></a>
                                    <a href="/Usercenter/security" class="icon email icon-profile-email ng-scope" ng-if="user.is_email_valid"></a>
                                    </p>
                                    @else
                                        <p class="profile-othermessage">
                                        <a href="/Usercenter/security" class="icon mobile icon-profile-phone ng-scope" ng-if="user.is_mobile_valid"></a>
                                        <a href="/Usercenter/security" class="icon email icon-profile-email none ng-scope" ng-if="!user.is_email_valid" tooltip="未绑定邮箱"></a>
                                        </p>
                                    @endif
                                </div>
                            </div>

                            
                        </div>
                        @endforeach
                        
                        <div class="profile-footprint ng-scope">
                            <div style="min-height:400px" role="main">
                                <!-- ngIf: pageTitleVisible -->
                                <h3 ng-if="pageTitleVisible" class="profile-paneltitle ng-scope">
                                    <span ng-bind="pageTitle" class="ng-binding">
                                        最近订单
                                    </span>
                                    <span class="subtitle ng-binding" ng-bind-html="pageSubtitle | toTrusted">
                                    </span>
                                </h3>
                                <!-- end ngIf: pageTitleVisible -->
                                <div class="profile-panelcontent" ng-transclude="">
                                    
                                    <div style="display:none" class="order-extra ng-scope">
                                        <a href="" target="_blank">
                                            热门问题
                                        </a>
                                        <a href=""
                                        target="_blank">
                                            随时关注订单状态
                                        </a>
                                    </div>
                                 
                                    @if(empty($orderses))
                                    <div class="loading ng-binding ng-isolate-scope ng-hide" loading="" ng-show="!orderList">
                                        <!-- ngIf: type==='profile' -->
                                        <img ng-if="type===&#39;profile&#39;" src="./饿了么-网上订餐_外卖_饿了么订餐官网_files/profile-loading.4984fa.gif"
                                        alt="正在加载" class="ng-scope">
                                        <!-- end ngIf: type==='profile' -->
                                        <!-- ngIf: type==='normal' -->
                                        正在载入数据...
                                    </div>
                                    <div style="display:block" class="order-nocontent nodata ng-isolate-scope" ng-show="orderList &amp;&amp; !orderList.length"
                                    nodatatip="" content="暂无记录，现在就去&lt;a href=&#39;/place&#39;&gt;订餐&lt;/a&gt;吧!">
                                        <p class="nodata-container ng-binding" ng-bind-html="content | toTrusted">
                                            暂无记录，现在就去订餐吧!
                                        </p>
                                    </div>
                                    @else
                                    <table class="order-list ng-scope" ng-show="orderList.length">
                                        <thead>
                                            <tr>
                                                <th>下单时间</th>
                                                <th class="order-list-infoth">订单内容</th>
                                                <th></th>
                                                <th>支付金额（元）</th>
                                                <th>状态</th>
                                                <th>操作</th></tr>
                                        </thead>
                                        <tbody>
                                            
                                            @foreach($orderses as $k=>$aaa)

                                    
                                            <!-- ngRepeat: item in orderList -->
                                            <tr class="timeline" order-timeline="" ng-repeat="item in orderList">
                                                <td class="ordertimeline-time">
                                                    <p class="ordertimeline-title ng-binding" ng-bind="item.created_at | parseDate">{{(date('m-d',$aaa->createtime))}}</p>

                                                    <p ng-bind="item.created_at | date:'HH:mm'" class="ng-binding">{{(date('H:i',$aaa->createtime))}}</p>
                                                    <!-- <p ng-bind="item.created_at | date:'HH:mm'" class="ng-binding">19:49</p> -->
                                                    <!-- ngIf: item.realStatus !==5 -->
                                                    <i class="ordertimeline-time-icon icon-uniE65D ng-scope unfinish" ng-if="item.realStatus !== 5" ng-class="{'unfinish': item.realStatus !== 4, 'unreview': item.realStatus === 4}"></i>
                                                    <!-- end ngIf: item.realStatus !==5 -->
                                                    <!-- ngIf: item.realStatus===5 --></td>
                                                <td class="ordertimeline-avatar">
                                                    <a ng-href="/shop/1302167" href="">
                                                        <img ng-src="" src="{{$aaa->logo}}"></a>
                                                </td>
                                                <td class="ordertimeline-info">
                                                    <h3 class="ordertimeline-title">
                                                        <a ng-href="/shop/1302167" ng-bind="item.restaurant.name" class="ng-binding" href="/modify/orderdetail">{{$aaa->shopname}}</a>
                                                        <!-- ngIf: item.is_book --></h3>
                                                    <p class="ordertimeline-info-food">
                                                        <a ng-href="order/id/1210270905209902115" href="">
                                                            <span class="ordertimeline-food ng-binding" ng-bind="item.product">{{$aaa->goodsname}} {{$aaa->ocount}}份</span>
                                                            <!-- ngIf: item.productnamenum> 2 -->
                                                            <!-- <span class="ordertimeline-info-productnum ng-binding" ng-bind="item.productnum">2</span>
                                                            <span>个菜品</span></a> -->
                                                    </p>
                                                    <p>订单号:
                                                        <a ng-href="order/id/1210270905209902115" ng-bind="item.unique_id" class="ng-binding" href="">1210270905209902115</a></p>
                                                </td>
                                                <td class="ordertimeline-amount">
                                                    <h3 class="ordertimeline-title ordertimeline-price ui-arial ng-binding" ng-bind="item.total_amount.toFixed(2)">{{$aaa->money}}</h3>
                                                    <p ng-bind="item.is_online_paid ? '在线支付' : '货到付款'" class="ng-binding">在线支付</p></td>
                                                <td class="ordertimeline-status">

                                                    <h3 ng-bind="item.statusText" ng-class="{'waitpay': (item.realStatus === 1), 'end': (item.realStatus === 5)}" class="ng-binding waitpay">已付款</h3>
                                                    
                                                <td class="ordertimeline-handle">
                                                    <a class="ordertimeline-handle-detail" ng-href="order/id/1210270905209902115" href="/modify/orderdetail?id={{$aaa->oid}}">订单详情</a>
                                                    
                                                    <a class="ordertimeline-handle-detail" ng-href="order/id/1210270905209902115" href="/modify/del?id=">删除订单</a>
                                                        </td>
                                            </tr>
                                            <!-- end ngRepeat: item in orderList --></tbody>
                                              
                                            @endforeach 
                                    </table>
                                    @endif
                                    <div pagination="order" pagination-context="pageContext" pagination-onchange="onOrderPageChange()"
                                    class="ng-scope pagination">
                                        <ul>
                                        </ul>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div> 
            </div>
        </div>

@include('home.Usercenter.footer')


